# -*- coding: utf-8 -*-
import os
import sys

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if BASE_DIR not in sys.path:
    sys.path.append(BASE_DIR)

from daemon.mq_tasks.cash_apply import CashApply
from daemon.mq_tasks.pay_check import PayCheck
from daemon.mq_tasks.reward_agency import RewardAgency
from daemon.mq_tasks.send_card import SendCard


def start():
    t1 = PayCheck()
    t1.setDaemon(False)
    t1.start()

    t2 = CashApply()
    t2.setDaemon(False)
    t2.start()

    t3 = RewardAgency()
    t3.setDaemon(False)
    t3.start()

    t4 = SendCard()
    t4.setDaemon(False)
    t4.start()


if __name__ == "__main__":
    start()
